package com.wxzz.elearing.user.entity;

import java.time.LocalDateTime;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author
 * @since 2021-03-11
 */
@Data
@ApiModel(value = "AdminUser对象", description = "系统用户")
public class AdminUser extends BaseEntity {

    @Excel(name = "账号", orderNum = "0", width = 30)
    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "类型  0-总后台账号   1-企业账号")
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String remark;

    private String adminToken;

    @ApiModelProperty(value = "企业id(为0则为平台用户 否则为企业用户)")
    private Long enterpriseId;

    @ApiModelProperty(value = "是否为讲师 0-否 1-是 2-试讲中")
    private Integer isDocent;

    @ApiModelProperty(value = "是否为审判员 0-否 1-是")
    private Integer isApproval;

    @ApiModelProperty(value = "部门id")
    private Long departmentId;

    @ApiModelProperty(value = "账号状态 0-禁用 1-启用")
    private Integer status;

    @ApiModelProperty(value = "是否为总权限账号 0-否 1-是")
    private Integer isAdmin;

    @Excel(name = "手机号", orderNum = "1", width = 30)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @Excel(name = "照片", orderNum = "2", width = 30)
    @ApiModelProperty(value = "照片")
    private String image;

    @Excel(name = "人员姓名", orderNum = "3", width = 30)
    @ApiModelProperty(value = "人员姓名")
    private String name;

    @ApiModelProperty(value = "讲师id")
    private Long docentId;

    @ApiModelProperty(value = "部门id")
    private Long enterpriseOrganizationId;

    @ApiModelProperty(value = "身份id")
    private Long enterpriseIdentityId;

    @TableField(exist = false)
    @ApiModelProperty(value = "角色信息")
    private AdminRole adminRole;

    @Excel(name = "角色名", orderNum = "4", width = 30)
    @TableField(exist = false)
    @ApiModelProperty(value = "角色名")
    private String roleName;
}
